package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.BalanceQueryRequest;
import com.chinaums.fsp.sdk.pgt.params.BalanceQueryResponse; 
/**
 * 账户余额查询
 * @author hhh
 */
public class BalanceQueryTest extends BaseRequest{

	public void testBalanceQueryRequest() throws Exception {
		
		PgtRequestFactory rf = FACTORY.factory();
		
		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.BALANCE_QUERY.getTransCode());
		
		BalanceQueryRequest data = BalanceQueryRequest.newBuilder()
																	.setAccountNo("695603264000113")
//																	.setAccountNo("695603264910013")
																	.build()
																	;
		rf.transType(TransType.BALANCE_QUERY.getTransCode())
		.responseClass(BalanceQueryResponse.class)
		.data(data)
		;
		
		ResponseDataWrapper rdw = rf.post();
	
		this.print(rdw);
	}
	
}